package com.example.aopdemo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/text")
@RestController
public class TextController {
    @RequestMapping("/t1")
    public String t1() {
        return "t1";
    }
    @RequestMapping("/t2")
    public String t2() {
        int n = 10 / 0;
        return "t2";
    }
}
